package org.bioversityinternational.mgbms.model.domain;

// Generated 13 oct. 2011 12:11:05 by Hibernate Tools 3.4.0.CR1

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.UniqueConstraint;

/**
 * BacteriaTestTag generated by hbm2java
 */
@Entity
@Table(name = "BacteriaTestTag", schema = "dbo", catalog = "imgbms", uniqueConstraints = @UniqueConstraint(columnNames = {
		"activityId", "materialId" }))
public class BacteriaTestTag implements java.io.Serializable {

	private int id;
	private Activity activity;
	private Integer materialId;
	private Boolean multipleParent;
	private String obsStatus;
	private Date lastObsDate;
	private String bacteriaTypeNames;
	private Date resultDate;
	private String notes;

	public BacteriaTestTag() {
	}

	public BacteriaTestTag(int id, Activity activity) {
		this.id = id;
		this.activity = activity;
	}

	public BacteriaTestTag(int id, Activity activity, Integer materialId,
			Boolean multipleParent, String obsStatus, Date lastObsDate,
			String bacteriaTypeNames, Date resultDate, String notes) {
		this.id = id;
		this.activity = activity;
		this.materialId = materialId;
		this.multipleParent = multipleParent;
		this.obsStatus = obsStatus;
		this.lastObsDate = lastObsDate;
		this.bacteriaTypeNames = bacteriaTypeNames;
		this.resultDate = resultDate;
		this.notes = notes;
	}

	@Id
	@Column(name = "id", unique = true, nullable = false)
	public int getId() {
		return this.id;
	}

	public void setId(int id) {
		this.id = id;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "activityId", nullable = false)
	public Activity getActivity() {
		return this.activity;
	}

	public void setActivity(Activity activity) {
		this.activity = activity;
	}

	@Column(name = "materialId")
	public Integer getMaterialId() {
		return this.materialId;
	}

	public void setMaterialId(Integer materialId) {
		this.materialId = materialId;
	}

	@Column(name = "multipleParent")
	public Boolean getMultipleParent() {
		return this.multipleParent;
	}

	public void setMultipleParent(Boolean multipleParent) {
		this.multipleParent = multipleParent;
	}

	@Column(name = "obsStatus", length = 20)
	public String getObsStatus() {
		return this.obsStatus;
	}

	public void setObsStatus(String obsStatus) {
		this.obsStatus = obsStatus;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "lastObsDate", length = 23)
	public Date getLastObsDate() {
		return this.lastObsDate;
	}

	public void setLastObsDate(Date lastObsDate) {
		this.lastObsDate = lastObsDate;
	}

	@Column(name = "bacteriaTypeNames")
	public String getBacteriaTypeNames() {
		return this.bacteriaTypeNames;
	}

	public void setBacteriaTypeNames(String bacteriaTypeNames) {
		this.bacteriaTypeNames = bacteriaTypeNames;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "resultDate", length = 23)
	public Date getResultDate() {
		return this.resultDate;
	}

	public void setResultDate(Date resultDate) {
		this.resultDate = resultDate;
	}

	@Column(name = "notes", length = 50)
	public String getNotes() {
		return this.notes;
	}

	public void setNotes(String notes) {
		this.notes = notes;
	}

}
